package com.oo.app;

import android.app.Application;

import com.oo.app.ui.im.view.CustomPrivateConversationProvider;
import com.oo.app.utils.AccountHelper;
import com.oo.app.widget.IMInitMgr;

import io.rong.imkit.RongIM;

/**
 * @创建者 蒋楚
 * @描述
 */

public class HuKeApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        init();
    }

    public void init() {

        AccountHelper.init(this);
        RongIM.init(this);
        IMInitMgr.init(getApplicationContext());

        RongIM.getInstance().registerConversationTemplate(new CustomPrivateConversationProvider());

    }


}
